import Vue from 'vue';
import App from './App';
import store from './store'
import netWordHandle from './utils/netWork.js'
// 验证弹框
import uniPopup from '@/components/uni-popup/uni-popup.vue'
import uniPopupvLogin from '@/components/uni-popup/uni-popup-vlogin.vue'
import tuiTips from "@/components/tips/tips"
import nonetword from '@/components/nonetword.vue'
import noData from '@/components/noData/noData.vue'
import service from './service.js'
import refer from '@/utils/refer.js' 
// 弹出框 
import DialogBox from './components/DialogBox/DialogBox';


Vue.config.productionTip = false

// 全局组件 
Vue.component('DialogBox', DialogBox);
// 挂载全局函数
Vue.prototype.$unit = netWordHandle;
Vue.prototype.$eventHub = new Vue();
//验证页面是否需要登陆
Vue.prototype.$refer = refer;
Vue.prototype.$service = service;

// 检测网络状态变换
netWordHandle.netWorkChange();
//引入公共组件
Vue.component('uni-popup',uniPopup)
Vue.component('uni-popup-vlogin',uniPopupvLogin)

Vue.component('tui-tips',tuiTips)
Vue.component('nonetword',nonetword)
//mescroll 
// import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
// import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
// Vue.component('mescroll-body', MescrollBody)
// Vue.component('mescroll-uni', MescrollUni)

App.mpType = 'app'

const app = new Vue({
    ...App,
	store
})
app.$mount()
